package design_pattern.state;

/**
 * Created by WeiDingKuo on 2017/10/27 9:31
 * <p>
 * 会使用到状态模式的类
 */
public class Context {
    private State state;

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public void dosomething() {
        this.state.dosomething();
    }
}
